set(src_dirs
            LED
            KEY
            ESPTIM
            GPTIM
            PWM
            OLED
            UART
            EXIT
            MYRTC
            ADC
            )

set(include_dirs
            LED
            KEY
            ESPTIM
            GPTIM
            PWM
            OLED
            UART
            EXIT
            MYRTC
            ADC
            ../SYSTEM/SYS
            )

set(requires
            driver
            esp_timer
            esp_adc
            nvs_flash
            )

idf_component_register(SRC_DIRS ${src_dirs} INCLUDE_DIRS ${include_dirs} REQUIRES ${requires})

component_compile_options(-ffast-math -O3 -Wno-error=format=-Wno-format)